<div class="box box-info">
    <div class="box-header with-border">
        <h3 class="box-title">详细</h3>
        
        <div class="box-tools">
            <div class="btn-group pull-right" style="margin-right: 5px">
                <a href="{{ route('admin.users.index') }}" class="btn btn-sm btn-default" title="列表">
                    <i class="fa fa-list"></i><span class="hidden-xs"> 列表</span>
                </a>
            </div>
        </div>
    </div>
    
    <div class="form-horizontal">
        
        <div class="box-body">
            
            <div class="fields-group">
                @if(count($children) > 0)
                    
                    <div style="border-bottom: 1px #eeeeee solid; padding-bottom: 5px">
                        <b>
                            {{ $ancestor->id }} -
                            {{ $ancestor->name }} -
                            {{ strtoupper($ancestor->grade) }} -
                            {{ $ancestor->grade_level }}星 -
                            族内成员（{{ $childrenCount }}）人
                        </b>
                    </div>
                    @foreach($children as $child)
                        <div style="margin: 5px 0">
                            {{ $child['indicator'] }} {{ $child['id'] }} - {{ $child['name'] }} - {{ $child['grade'] }} - {{ $child['grade_level'] }}星
                        </div>
                    @endforeach
                @else
                    暂无族内成员...
                @endif
            </div>
        
        </div>
    </div>
</div>
